import { getRequest, postRequest,postBodyRequest ,bodyPostRequest} from '../../libs/axios';
import { exportPost } from '../../libs/axios';

//导入户口信息
export const importAccountTransferInfoAPI = params => {
    return postBodyRequest('/accountTransferInfo/importAccount', params);
};

//获取待审核户口数据
export const getTodoListData = param => postRequest('/accountTransferInfo/todoList', param);

// 审核通过数据
export const accountTransferPass = param => postRequest('/accountTransferInfo/accountTransferPass', param);

// 审核驳回数据
export const accountTransferBack = param => postRequest('/accountTransferInfo/back', param);

// 导出全部数据
export const exportAllAccountTransferInfo = () => {
    return exportPost('/accountTransferInfo/export');
};
export const exportSelectAccountTransferInfo = (params) => {
    return exportPost('/accountTransferInfo/exportByIds',params);
};

export const exportSearchAccountTransferInfo = (params) => {
    return exportPost('/accountTransferInfo/exportCondition',params);
};

// 导出全部数据
export const exportAllAccountTransferRecord = () => {
    return exportPost('/accountTransferRecord/export');
};
export const exportSelectAccountTransferRecord = (params) => {
    return exportPost('/accountTransferRecord/exportByIds',params);
};

export const exportSearchAccountTransferRecord = (params) => {
    return exportPost('/accountTransferRecord/exportCondition',params);
};
// 管理端更新户口信息
export const updateApi = param => postRequest('/accountTransferInfo/update', param);

// 获取单条户口信息
export const getByIdApi = param => postRequest('/accountTransferInfo/getById', param);

// 已审核的数据
export const archiveTransferInfoDoneListApi = param => postRequest('/accountTransferInfo/archiveTransferInfoDoneList', param);

// 批量通过
export const passListApi = param => bodyPostRequest('/accountTransferInfo/passList', param);
// 批量驳回
export const backListApi = param => bodyPostRequest('/accountTransferInfo/backList', param);

// 获取审核历史记录
export const getRecordListApi = param => postRequest('/accountTransferInfo/getRecordList', param);


// 获取数据统计
export const getDataStatisticsApi = param => postRequest('/accountTransferInfo/getDataStatistics', param);


// 批量删除已审核数据
export const accountTransferRecordDeleteByIdsApi = param => postRequest('/accountTransferRecord/deleteByIds', param);

